package com.hsc.yalebao.zhuanpan;

import android.content.Context;
import android.content.res.Resources;
import android.util.DisplayMetrics;
import android.view.LayoutInflater;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.ViewGroup.LayoutParams;
import android.view.Window;
import android.view.WindowManager.LayoutParams;
import android.widget.ImageView;
import android.widget.RelativeLayout.LayoutParams;
import android.widget.TextView;
import com.flyco.dialog.widget.base.BaseDialog;

public class PicDialog extends BaseDialog
{
  public int bgColor;
  public TextView mContentTv;
  public Context mContext;
  public ImageView mHeadImageView;
  public AnimationImageView mImageView;
  public TextView mNameTv;
  public ImageView mOneImageView;
  public AnimationImageView mOpenImageView;
  public TextView mStarTv;
  public ImageView mTwoImageView;

  public PicDialog(Context paramContext)
  {
    super(paramContext);
    this.mContext = paramContext;
  }

  public PicDialog bgColor(int paramInt)
  {
    this.bgColor = paramInt;
    return this;
  }

  public AnimationImageView getmOpenImageView()
  {
    return this.mOpenImageView;
  }

  public View onCreateView()
  {
    new DisplayMetrics();
    DisplayMetrics localDisplayMetrics = this.mContext.getResources().getDisplayMetrics();
    View localView = getLayoutInflater().inflate(2130903194, null);
    localView.setLayoutParams(new ViewGroup.LayoutParams(-1, (int)(0.65D * localDisplayMetrics.heightPixels)));
    this.mHeadImageView = ((ImageView)localView.findViewById(2131100291));
    this.mNameTv = ((TextView)localView.findViewById(2131099922));
    this.mStarTv = ((TextView)localView.findViewById(2131100292));
    this.mContentTv = ((TextView)localView.findViewById(2131100293));
    this.mImageView = ((AnimationImageView)localView.findViewById(2131100290));
    this.mOpenImageView = ((AnimationImageView)localView.findViewById(2131100294));
    this.mOneImageView = ((ImageView)localView.findViewById(2131100288));
    this.mTwoImageView = ((ImageView)localView.findViewById(2131100289));
    RelativeLayout.LayoutParams localLayoutParams1 = new RelativeLayout.LayoutParams(-1, (int)(0.75D * (0.65D * localDisplayMetrics.heightPixels)));
    this.mTwoImageView.setLayoutParams(localLayoutParams1);
    RelativeLayout.LayoutParams localLayoutParams2 = new RelativeLayout.LayoutParams(this.mOpenImageView.getLayoutParams());
    localLayoutParams2.setMargins(0, (int)(0.75D * (0.65D * localDisplayMetrics.heightPixels)) - localLayoutParams2.width / 2, 0, 0);
    localLayoutParams2.addRule(14);
    this.mOpenImageView.setLayoutParams(localLayoutParams2);
    Window localWindow = getWindow();
    localView.setPadding(localDisplayMetrics.widthPixels / 12, 0, localDisplayMetrics.widthPixels / 12, 0);
    WindowManager.LayoutParams localLayoutParams = localWindow.getAttributes();
    localLayoutParams.x = 0;
    localLayoutParams.y = 0;
    localLayoutParams.dimAmount = 0.5F;
    getWindow().setAttributes(localLayoutParams);
    setCanceledOnTouchOutside(false);
    setCancelable(false);
    this.mHeadImageView.setOnClickListener(new View.OnClickListener()
    {
      public void onClick(View paramAnonymousView)
      {
      }
    });
    return localView;
  }

  public boolean setUiBeforShow()
  {
    return false;
  }

  public void setmOpenImageView(AnimationImageView paramAnimationImageView)
  {
    this.mOpenImageView = paramAnimationImageView;
  }
}

/* Location:           C:\Users\user\Desktop\dd28_pcdd720\classes_dex2jar.jar
 * Qualified Name:     com.hsc.yalebao.zhuanpan.PicDialog
 * JD-Core Version:    0.6.2
 */